<?php 
session_start();
$lang = $_SESSION['lang'];
if (empty($lang) || $lang == "EN") {
	include "../value/value_en.php";
} else if($lang == "VN") {
	include "../value/value_vn.php";
}
else {
	include "../value/value_kr.php";
}
$id_employee=$_SESSION['IDEmployee'];
$IDEmployeeSend=$_REQUEST['IDEmployeeSend'];
    $tile=$_REQUEST['titleSearch'];
    $fromdate=$_REQUEST['date1'];
    $todate=$_REQUEST['date2'];
    $search=$_REQUEST['search'];
include '../operations/connection.php';	
if(isset($_REQUEST['flagaction'])){
	if($_REQUEST['flagaction']=="newlb"){
		$sql="insert into list_lable(LableName,IDEmployee) values ('".$_REQUEST['lablename']."','".$id_employee."')";
		mysql_query($sql);
	}
}
$sql_library="select list_lable.IDLable,list_lable.LableName from list_lable where list_lable.IDEmployee='".$id_employee."'";
$mang_library=mysql_query($sql_library);
?>
            
            <?php 
														
				if(mysql_num_rows($mang_library)>0){
					while($row=mysql_fetch_array($mang_library)){
					?>
					<li><a  onclick="onprocessCheckbox('<?php echo $_SESSION['lang']?>','<?php echo $id_employee?>','<?php echo $row[IDLable]?>','<?=$search?>','<?=$tile?>','<?=$fromdate?>','<?=$todate?>','<?=$IDEmployeeSend?>');" ><?php echo $row[LableName]?></a></li>
					<?php 
					}
				}
			?>
<?php  mysql_close($connection);?>